<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
  <meta charset="UTF-8">
  <title>修改房间信息</title>
  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
</head>

<body>
<div class="container">
  <h1 th:align="center" th:color="blue"> 酒店管理系统 </h1>
  <h2> 添加房间信息 </h2>

  <form action="#" th:action="@{/saveHotel}" th:object="${hotel}" method="POST">
    <input type="text" th:field="*{roomNo}" placeholder="RoomNo" class="form-control mb-4 col-4">

    <input type="text" th:field="*{roomType}" placeholder="RoomType" class="form-control mb-4 col-4">

    <input type="text" th:field="*{price}" placeholder="Price" class="form-control mb-4 col-4">

    <button type="submit" class="btn btn-info col-2"> 保存 </button>
  </form>

  <hr>

  <a th:href="@{/}" th:color="red" class="btn btn-primary btn-sm mb-3"> 返回首页 </a>
</div>

</body>

</html>